<!doctype html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

    <title>Hello</title>
    <style>
        body{
                padding:0px;
                margin:0px;
        }
        html{
            background:#1A1F10;
            font-size:30px
        }
        .wrapper{
            color:white;
            width:100%;
            height:100%;
            clear:both;
        }
        #main_content{
            width:70%;
            margin:0 auto;
            overflow:hidden;
        }
        header{
            text-align:center;
            font-size:1rem;
            height:3rem;
            background-image:url('headerbg.png');
            background-size:100% 100%;
        }
        .button{
            width:20%;
            height:10rem;
            font-size:2rem;
            text-align:center;
            margin:1rem;
            float:left;
        }
        #main_content .button .icon{
            width: 6rem;
            height: 6rem;
            background-size: 5rem 3rem;
            background-position:center center;
            background-repeat: no-repeat;
            background-image: url('icon1.png');
            margin: 0 auto;
            margin-top: 1rem;  
            background-color: #aee202;
            border-radius: 0.3rem;
        }
        #main_content .button .title{
            line-height: 2rem;
            font-size: 1.2rem;
            height: 2rem;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <header>首页</header>
    <div id="main_content">
        <div class="button" id="div1">
            <div class="icon" id="icon1">
            </div>
            <div class="title" >工厂灯光</div>
        </div>
        <div class="button" id="div2">按钮2</div>
        <div class="button" id="div3">按钮3</div>
        <div class="button" id="div4">按钮4</div>
        <div class="button" id="div5">按钮5</div>
        <div class="button" id="div6">按钮6</div>
        <div class="button" id="div7">按钮7</div>
        <div class="button" id="div8">按钮8</div>
    </div>
</div>
<script>
    document.getElementById("icon1").onclick=function(){
        window.android.startFragment("工厂灯光");
    }
</script>
</body>
</html>